package com.liangtian.mdm.material.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.liangtian.mdm.material.model.WlwlField;
import com.liangtian.mdm.material.model.WlwlFieldSelectValue;

/**
 * 物料可配置字段操作接口类
 *
 * @author jyh
 * @date 2017-02-23
 */
public interface WlwlFieldService {

    /**
     * 根据条件获取物料字段配置表数据
     *
     * @param cond
     * @return
     * @author jyh
     * @date 2017-02-23
     */
    @SuppressWarnings("rawtypes")
    public PageInfo queryWlwlField(Map<String, Object> cond);

    public List<WlwlField> queryWlwlFieldByCond(Map<String, Object> cond);

    /**
     * 根据field获取一条数据
     *
     * @param field
     * @return
     * @author jyh
     * @date 2017-02-23
     */
    public WlwlField queryWlwlFieldById(String field);

    /**
     * 根据条件修改物料字段配置表数据
     *
     * @param cond
     * @return
     * @author jyh
     * @date 2017-02-23
     */
    public int updateWlwlField(Map<String, Object> cond);

    /**
     * 根据条件，获取下拉类型物料配置字段的取值集合
     *
     * @param cond
     * @return
     */
    public List<WlwlFieldSelectValue> queryWlwlFieldSelectValueListByCond(Map<String, Object> cond);

}
